/**
 * 
 */
function showTools() {
	checkedNum = 0;
	valueArray = new Array();
	var chkArray = document.getElementsByTagName("input");
	if (chkArray == null) {
		return false;
	}
	for (var i = 0; i < chkArray.length; i++) {
		if (chkArray[i].type == "checkbox") {
			if (chkArray[i].checked == true) {
				checkedNum = checkedNum + 1;
				valueArray[i] = chkArray[i].value;
			}
		}
	}
	if (checkedNum != 0) {
		document.getElementById("fudong").style.display = "block";
	} else {
		document.getElementById("fudong").style.display = "none";
	}
	document.getElementById("mdct").innerText = checkedNum;
}

jQuery(function($) {
	$(function managerTools() {
		var timer, scrollTop, sideDiv = $(
				"<div id=\"fudong\" class=\"fwinmask\" style=\"display: none; z-index: 350; right: 20px; top: 100px; position: absolute;\"></div>")
				.load("managerDialog.jsp").appendTo('body');
		$(window).scroll(function() {
			timer && clearTimeout(timer);
			scrollTop = $(this).scrollTop();
			timer = setTimeout(function() {
				sideDiv.animate({
					top : scrollTop + 100 + 'px'
				}, 600);
			}, 200);
		});
	});
});
